package com.mondo.financialwallet.presentation.ui.activity;

import android.content.Intent;

import com.example.common.ui.BaseActivity;
import com.mondo.financialwallet.R;
import com.mondo.financialwallet.presentation.utils.LocalConfigStorage;

/**
 * 闪屏页面
 */
public class SplashScreenActivity extends BaseActivity {

    @Override
    protected int getLayoutID() {
        return R.layout.activity_splash_screen;
    }

    @Override
    protected void initActions() {
        if (LocalConfigStorage.get().isLogin()) {
            startActivityAndFinish(new Intent(this, MainActivity.class));
        } else {
            startActivityAndFinish(new Intent(this, LoginActivity.class));
        }
    }
}
